<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif;">
<h1>Upload File for Payment Purpose,Staff: <?php echo $this->staffName;?></h1>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">

<table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <td colspan="2"><strong>Staff Banking Details (Must Complete Fill All 3 Sections)</strong></td>
  </tr>
  <tr>
    <td align="right">Bank Account BSB</td>
    <td>
      <?php if(trim($this->bankDetail['bank_bsb'])==''){?>
      <input type="text" name="bank_bsb" id="bank_bsb" /><span style="font-size:13px;"> Double Check Before Submit!</span>
      <?php } 
	  else{
	  ?>
      <span style="font-size:13px;color:#060;">Already Filled,Contact Head Office To Change.</span><img src="/im/yes20.jpg" />
      <?php }?>
      </td>
  </tr>
  <tr>
    <td align="right">Bank Account No.</td>
    <td>
    <?php if(trim($this->bankDetail['bank_acc_no'])==''){?>
      <input type="text" name="bank_acc_no" id="bank_acc_no" /><span style="font-size:13px;"> Double Check Before Submit!</span>
      <?php } 
	  else{
	  ?>
      <span style="font-size:13px;color:#060;">Already Filled,Contact Head Office To Change.</span><img src="/im/yes20.jpg" />
      <?php }?>
      </td>
  </tr>
  <tr>
    <td align="right">Bank Account Name</td>
    <td>
    <?php if(trim($this->bankDetail['bank_acc_name'])==''){?>
      <input type="text" name="bank_acc_name" id="bank_acc_name" /><span style="font-size:13px;"> Double Check Before Submit!</span>
      <?php } 
	  else{
	  ?>   
      <span style="font-size:13px;color:#060;">Already Filled,Contact Head Office To Change.</span><img src="/im/yes20.jpg" />
      <?php }?>
      </td>
  </tr>
  <tr>
    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
          <td><b>Level 1 Identification</b>,you <strong>MUST</strong> upload at least one of the following IDs*: <br />
            <span style="font-size:12px;">(Photo ID,Image File : .jpg .png file only, max size for each file is 2MB)</span></td>
          <td>
          <?php 
		  switch($this->scanStatus[0]){
			  case(1):{echo '<img src="/im/yes20.jpg" title="Level 1 ID Verified" />Verified';break;}
			  case(-1):{echo '<img src="/im/btn_edit_error.png" title="Level 1 ID Waiting Verify" />Wait Verify';break;}
			  case(2) :{echo '<img src="/im/no20.jpg" title="Level 1 ID Failed" />Failed';break;}
			  default :{echo 'Not upload';break;}
			  }
		  ?>
           </td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td width="237" align="right"><p>Driver License</p>
   </td>
    <td width="517">
    	<?php if(!$this->dlFileExist){?>
      <input type="file" name="driver_license" id="drive_license" />
    	<?php }else {?>
        <span style="font-size:13px;color:#060;">Already Uploaded.</span><img src="/im/yes20.jpg" />
		<?php }?>
    </td>
  </tr>
  <tr>
    <td align="right"><p>Passport</p>
    </td>
    <td width="517">
    <?php if(!$this->psFileExist){?>
    <input type="file" name="passport" id="passport" />
    <?php }else {?>
        <span style="font-size:13px;color:#060;">Already Uploaded.</span><img src="/im/yes20.jpg" />
		<?php }?>
    </td>
  </tr>
  <tr>
    <td align="right">Passport Visa Page</td>
    <td width="517">
    <?php if(!$this->pvFileExist){?>
    <input type="file" name="passport_visa" id="passport_visa" />
        <?php }else {?>
        <span style="font-size:13px;color:#060;">Already Uploaded.</span><img src="/im/yes20.jpg" />
		<?php }?>
    </td>
  </tr>
  <tr>
    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><b>
Level 2 Identification</b>,you <strong>MUST</strong> upload at least one of the following IDs*:<br />
<span style="font-size:12px;">(Photo ID,Image File : .jpg .png file only, max size for each file is 2MB)</span></td>
        <td><?php 
		  switch($this->scanStatus[1]){
			  case(1):{echo '<img src="/im/yes20.jpg" title="Level 1 ID Verified" />Verified';break;}
			  case(-1):{echo '<img src="/im/btn_edit_error.png" title="Level 1 ID Waiting Verify" />Wait Verify';break;}
			  case(2) :{echo '<img src="/im/no20.jpg" title="Level 1 ID Failed" />Failed';break;}
			  default :{echo 'Not upload';break;}
			  }
		  ?></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="right">Student Card<br /></td>
    <td>
    <?php if(!$this->stCardFileExist){?>
    <input type="file" name="student_card" id="student_card" />
    <?php }else {?>
        <span style="font-size:13px;color:#060;">Already Uploaded.</span><img src="/im/yes20.jpg" />
		<?php }?>
    </td>
  </tr>
  <tr>
    <td align="right">Medicare Card<br /></td>
    <td>
    <?php if(!$this->mcCardFileExist){?>
    <input type="file" name="medicare_card" id="medicare_card" />
     <?php }else {?>
        <span style="font-size:13px;color:#060;">Already Uploaded.</span><img src="/im/yes20.jpg" />
		<?php }?>
    </td>
  </tr>
  <tr>
    <td align="right">Credit Card (Master/Visa)</td>
    <td>
    <?php if(!$this->cdCardFileExist){?>
    <input type="file" name="credit_card" id="credit_card" />
     <?php }else {?>
        <span style="font-size:13px;color:#060;">Already Uploaded.</span><img src="/im/yes20.jpg" />
		<?php }?>
    </td>
    
  </tr>
  <tr>
    <td align="right">TFN FORM</td>
    <td>
    <?php if(!$this->TfnFileExist){?>
    <input type="file" name="tfn_form" id="tfn_form" />
     <?php }else {?>
        <span style="font-size:13px;color:#060;">Already Uploaded.</span><img src="/im/yes20.jpg" />
		<?php }?>
    </td>
    
  </tr>
  <tr>
    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><strong>Level 3 File</strong>, All the scan copies that you want to send back to headoffice<span style="font-size:12px;"><br />
            (you may upload word,excel,image files, max size for each file is 2MB)</span><br /></td>
          <td><?php 
		  switch($this->scanStatus[2]){
			  case(1):{echo '<img src="/im/yes20.jpg" title="Level 1 ID Verified" />Verified';break;}
			  case(-1):{echo '<img src="/im/btn_edit_error.png" title="Level 1 ID Waiting Verify" />Wait Verify';break;}
			  case(2) :{echo '<img src="/im/no20.jpg" title="Level 1 ID Failed" />Failed';break;}
			  default :{echo 'Not upload';break;}
			  }
		  ?></td>
        </tr>
      </table>
     </td>
  </tr>
  <tr>
    <td rowspan="3" align="right">Staff Singed Document Scan:<br />
      <span style="font-size:12px;">
      Cash Handling ,CompanyProperty<br />
      <br />
      </span>
      <br />      
      <span style="font-size:12px;">(please only upload one file every time, you upload file name will not change)</span><br />
      <br /></td>
    <td>
<input type="file" name="sign_doc" id="sign_doc" />
<br /></td>
  </tr>
  <tr>
    <td style="font-size:13px; background-color:#69F;">Uploaded Staff Signed Documents</td>
  </tr>
  <tr>
    <td style="font-size:13px; color:#060;">
      <?php
	if(empty($this->arrSdoc)){
		echo "<span style=\"color:#aaa\" >no file has been uploaded</span>";
		}
	else{
		foreach($this->arrSdoc as $doc){
			echo $doc."<br />";
			}
		}	
	?>
    </td>
  </tr>
  <tr>
    <td colspan="2" align="left"><strong>Level 4 File</strong>,Other Files for payment purpose</td>
    </tr>
  <tr>
    <td rowspan="3" align="right">Other file you want to send to warehouse<br />
      <br />
      <span style="font-size:12px;">(please only upload one file every time, you upload file name will not change)</span></td>
    <td><label for="other_file_comm"></label>

      <input type="file" name="other_file" id="other_file" />
      <br />
      <br />
      <span style="font-size:13px;">Your Comment/Explaination for this upload file:</span><br />
<input name="other_file_comm" type="text" id="other_file_comm" size="90" />
</td>
  </tr>
  <tr>
    <td style="font-size:13px; background-color:#69F;" >Uploaded Other File</td>
  </tr>
  <tr>
    <td  style="font-size:13px; color:#060;" >
    <?php
	if(empty($this->arrOdoc)){
		echo "<span style=\"color:#aaa\" >no file has been uploaded</span>";
		}
	else{
		?>
     <table width="95%" border="0" cellspacing="0" cellpadding="5">   
     <?php
		foreach($this->arrOdoc as $doc){
	  ?>
      	<tr>
        <td><?php echo $doc[0]?></td>
        <td><?php echo $doc[1]?></td>
        <td><?php echo ($doc[2] == 1)?'verified':'wait verify';?></td>
      </tr>	
	<?php	
	}
	?>
    </table>
    <?php 		}	?>
    
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center"><input type="submit" name="button" id="button" value="Upload Files, Please Only Click the Button Once" />
      <br />
      <br />
      <span style="color:#F00;font-weight:bold;">Upload files will take quite a long time, please do not close this window until the process finished<br />
      If you had upload a wrong file, please contact head office to help you remove the file
      </span></td>
    </tr>
</table>
</form>
</body>
</html>
